package cn.yunhe.service.impl;

import cn.yunhe.dao.FieldDao;
import cn.yunhe.entity.Field;
import cn.yunhe.service.FieldService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("fieldService")
public class FieldServiceImpl implements FieldService {

    @Resource
    private FieldDao fieldDao;

    /**
     * 获取所有分类
     * @return
     * 郭瀚钰
     */
    @Override
    public List<Field> getAllField() {
       return  fieldDao.getAllField();
    }

    public FieldDao getFieldDao() {
        return fieldDao;
    }

    public void setFieldDao(FieldDao fieldDao) {
        this.fieldDao = fieldDao;
    }
}
